<template>
    <div>
        <h1>我是router2B的内容</h1>
        <div>消息编号：{{$route.query.id}}</div>
        <div>消息名字：{{$route.query.title}}</div>
    </div>
    
</template>

<script>
    export default {
        name: 'Router2B',
        mounted() {
            console.log('router2B组件获取的参数打印', this.$route)
        },
        
        //独立路由守卫
        // beforeRouteEnter(to,from,next) {},
        // beforeRouteLeave(to,from,next) {}
    }
</script>

<style scoped lang="less">

</style>